package main

import (
	"fmt"
)

func main(){
	if result, err = dataFromTable()
	if err != nil{
		fmt.Println(err.Cause())
	}
	fmt.Println(result)
}

func dataFromTable() ([string], error){
	if result, err := select("select * from table")
	if err == sql.ErrNoRows {
		return errors.Wrap(err, "read table failed")
	}
	return result
}